export const modalMixins = {
    data() {
        return {
            flag: false,
            showClose: false,
            modalFlag: false,
            title: '',
            assembly: '',
        }
    },
    methods: {
        close() {
            this.flag = false;
        }
    }
};

export const mappingMixins = {
    data() {
        return {
            classifyList: [
                {
                    id: 'data_predict',
                    name: '数据预测'
                },
                {
                    id: 'other',
                    name: '其他'
                },
            ],
            progressRate: [
                { id: 'material', name: '选择数据集', type: 'warning' },
                // {id: 'loadmodel', name: '导入模型', type: 'primary'},
                { id: 'train', name: '训练中', type: 'warning' },
                { id: 'publish', name: '训练成功', type: 'success' },
                { id: 'trainerr', name: '训练失败', type: 'danger' },
            ],
            implementationModeList: [
                { id: 'sklearn', name: 'Python' },
                { id: 'matlab', name: 'MATLAB' }
            ],
            statusList: [
                { id: 'unpublish', name: '未发布', type: 'warning' },
                { id: 'publishing', name: '发布中', type: 'primary' },
                { id: 'published', name: '发布成功', type: 'success' },
                { id: 'error', name: '发布失败', type: 'danger' }
            ],
            forecastStatusList: [ // 预测任务状态
                { id: "notStart", name: "未开始", type: "primary" },
                { id: "running", name: "运行中", type: "primary" },
                { id: "complete", name: "完成", type: "success" },
                { id: "error", name: "失败", type: "danger" }
            ]
        };
    }
};
